import 'uno.css'
import '@/design/index.less'
import 'ant-design-vue/dist/reset.css'

import { createApp } from 'vue'
import App from './App.vue'
import { registerGlobComp } from '@/components/registerGlobComp'
import { router, setupRouter } from '@/router'
import { setupStore } from "@/store";
import {setupRouterGuard} from "@/router/guard";

async function bootstrap() {
  const app = createApp(App)

  // 配置 store
  setupStore(app)

  // 注册全局组件
  registerGlobComp(app)

  // 配置路由
  setupRouter(app)

  // 路由守卫
  setupRouterGuard(router)

  app.mount('#app')
}

bootstrap()
